package com.team.sion.pojo;

public class Messages <T>{
    private boolean success = true;
    private String message = null;
    private String type =null;
    private T data = null;
    private Integer code = 200;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Messages() {
    }

    public Messages(boolean success) {
        this.success = success;
    }

    public Messages(String message, T data) {
        this.message = message;
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
